package com.example.accessdemo.domain;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import lombok.Data;

@Data
public class CustomPage<T> extends Page<T> {
    
    // 页面大小
    private long pageSize;

    // 当前页
    private long page;

    public CustomPage( int page,int pageSize){
        /**
         * 自定义
         */
        this.page = page;
        this.pageSize = pageSize;
    
        /**
         * 兼容mbp
         */
        this.current = page;
        this.size = pageSize;
    }
    
}
